package com.linln.wtp.controller.insuranceoffer;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.List;
import java.util.Map;

/**
 * @author : pengliang
 * @version V1.0
 * @Project: timo
 * @Package com.linln.wtp.controller.insuranceoffer
 * @Descriptio /**
 * @Project: timo
 * @Package com.linln.wtp.controller.insuranceoffer
 * @Description: TODO
 * @date Date : 2021年01月11日 11:25
 */
@Configuration
@ConfigurationProperties(prefix = "insurances")
public class InsuranceProperties {
    public static List<Map<String, String>> list;   //static 才能拿配置值

    public static List<Map<String, String>> getList() {
        return list;
    }

    public void setList(List<Map<String, String>> list) {
        InsuranceProperties.list = list;
    }
}
